package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文档管理对象 document
 * 
 * @author ruoyi
 * @date 2025-03-22
 */
public class Document extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文档表ID */
    @Excel(name = "文档表ID")
    private Long documentId;

    /** 文档来源（文档名字） */
    @Excel(name = "文档来源", readConverterExp = "文=档名字")
    private String documentSource;

    /** 上传用户 */
    @Excel(name = "上传用户")
    private String uploadUser;

    /** 文档类型（对应sys_dict_data的dict_value，值为1-9，默认1） */
    @Excel(name = "文档类型", readConverterExp = "对=应sys_dict_data的dict_value，值为1-9，默认1")
    private String documentType;

    /** 文件存储地址（本地路径或URL） */
    private String filePath;

    /** 文档关联数量 */
    @Excel(name = "文档关联数量")
    private Long relationCount;

    public void setDocumentId(Long documentId) 
    {
        this.documentId = documentId;
    }

    public Long getDocumentId() 
    {
        return documentId;
    }

    public void setDocumentSource(String documentSource) 
    {
        this.documentSource = documentSource;
    }

    public String getDocumentSource() 
    {
        return documentSource;
    }

    public void setUploadUser(String uploadUser) 
    {
        this.uploadUser = uploadUser;
    }

    public String getUploadUser() 
    {
        return uploadUser;
    }

    public void setDocumentType(String documentType) 
    {
        this.documentType = documentType;
    }

    public String getDocumentType() 
    {
        return documentType;
    }

    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }

    public void setRelationCount(Long relationCount) 
    {
        this.relationCount = relationCount;
    }

    public Long getRelationCount() 
    {
        return relationCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("documentId", getDocumentId())
            .append("documentSource", getDocumentSource())
            .append("uploadUser", getUploadUser())
            .append("documentType", getDocumentType())
            .append("filePath", getFilePath())
            .append("relationCount", getRelationCount())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
